<template>
  <div>
    <span class="hotDepartment">热门科室</span>
    <div class="departmentList" v-for="(list, index) in departmentList" :key="index">
      <div class="detailHeader">
        <span class="left">{{list.deptName}}</span>
        <div class="right">
          <img
            class="departmentImg"
            src="https://pic1.zhimg.com/v2-e9524bd287b70e64915a2d155f014072_is.jpg"
          />
          <img
            class="departmentImg"
            src="https://pic1.zhimg.com/v2-e9524bd287b70e64915a2d155f014072_is.jpg"
          />
          <img
            class="departmentImg"
            src="https://pic1.zhimg.com/v2-e9524bd287b70e64915a2d155f014072_is.jpg"
          />
          <p>86位医生</p>
        </div>
      </div>
      <div class="detailContent">
        <div>大萨达萨达萨达萨达撒倒萨大时代科技发达司空见惯粉红色的距离科融环境阿斯利康发货就死了打款</div>
        <p class="cuIcon-right detailContent-go" @click="goto"></p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    departmentList: Array
  }
};
</script>

<style lang="scss" scoped>
.hotDepartment {
  box-sizing: border-box;
  display: inline-block;
  padding: 0 20rpx;
  line-height: 60rpx;
  height: 60rpx;
  width: 100%;
  font-size: 24rpx;
  background-color: #fafafa;
  color: #898989;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  margin-top: -1px;
}
.departmentList {
  width: 100%;
  padding: 20rpx 30rpx 0;
  box-sizing: border-box;
  .detailHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70rpx;
    box-sizing: border-box;
    .left {
      font-size: 30rpx;
      font-weight: bold;
      color: #000000;
      //margin-left: 10rpx;
    }
    .right {
      display: flex;
      align-items: center;
      background-color: #f1f3f2;
      color: #959595;
      padding: 0 20rpx;
      font-size: 20rpx;
      border-radius: 50rpx;
      height: 50rpx;
      //margin-right: 10rpx;
      .departmentImg {
        width: 36rpx;
        height: 36rpx;
        border-radius: 18rpx;
        margin-right: 6rpx;
        overflow: hidden;
      }
      p {
        margin-left: 14rpx;
      }
    }
  }
  &:last-child {
    .detailContent {
      border-bottom: none;
    }
  }
  .detailContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 0 0 20rpx 0;
    width: 100%;
    font-size: 24rpx;
    color: #6e6e6e;
    border-bottom: 1px solid #f1f1f1;
    div {
      width: 95%;
      box-sizing: border-box;
      padding-right: 40rpx;
      line-height: 40rpx;
      word-break: break-all;
    }
    .detailContent-go {
      color: #999999;
      font-size: 30rpx;
    }
  }
}
</style>